package com.wumart.scaffold.web.common.exception;


import com.wumart.scaffold.web.common.enums.CodeMsg;

/**
 * @author ruhaibo
 * @creat 2017-08-16 9:54.
 */
public class ParamsCheckException extends BaseRuntimeException {

    // 默认异常返回码
    private static CodeMsg defaultCodeMsg = CodeMsg.ERR_PARAMETER_CHECK;

    public ParamsCheckException() {
        super(defaultCodeMsg);
    }

    public ParamsCheckException(String message) {
        super(defaultCodeMsg, message);
    }

    public ParamsCheckException(String message, Throwable cause) {
        super(defaultCodeMsg, message, cause);
    }

    public ParamsCheckException(Throwable cause) {
        super(defaultCodeMsg, cause);
    }

    public ParamsCheckException(CodeMsg codeMsg) {
        super(codeMsg);
    }

    public ParamsCheckException(CodeMsg codeMsg, String message) {
        super(codeMsg, message);
    }

    public ParamsCheckException(CodeMsg codeMsg, String message, Throwable cause) {
        super(codeMsg, message, cause);
    }

    public ParamsCheckException(CodeMsg codeMsg, Throwable cause) {
        super(codeMsg, cause);
    }
}
